import java.text.SimpleDateFormat
import java.util.Date

/**
  * description:
  * Rabcheng
  * Date:2019/5/7 16:01
  **/
object TestTime {

  def main(args: Array[String]): Unit = {

    val time1 = new Date().getTime

    println(time1)

    Thread.sleep(2000)

    val time2 = new Date().getTime

    println(new Date().getTime-time1)

  }

}
